import axios from 'axios'
import { request } from '@/utils/request'
import { request_t,instance} from '@/utils/request2';

//个人中心主页
export function PageList(data) {
    const url = request.baseURL + '/api/user/Service/PageList';
    return axios.get(url, {
        params: data
    }).then((res) => {
        return Promise.resolve(res.data);
    });
};
//购买服务
export function BuyService(id,price) {
    const data = {
        serviceId: id,
        price: price
    };
    const url ='/api/user/Service/BuyitService';
    let res=request_t(url, 'post', data);
    return res;
};